import Vue from 'vue'

import 'normalize.css/normalize.css' // A modern alternative to CSS resets

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
// import locale from 'element-ui/lib/locale/lang/en' // 语言切换

import '@/styles/index.scss' // 引入全局样式

import App from './App'
import store from './store'
import router from './router'
import components from '@/components/index'
Vue.use(components)
import '@/icons' // 引入图标
import '@/permission' // 权限管理,

// Vue.use(ElementUI, { locale })
// 如果想要中文版 element-ui，按如下方式声明
Vue.use(ElementUI)
import Directive from '@/directive'
Vue.use(Directive)
Vue.config.productionTip = false
import i18n from '@/lang'
new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App)
})
